-- GENERATED SPELL FOR [Hellfire Familiar] --


function spell0_19016(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(13341,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19016', 590, 1)
end

function spell1_19016(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(11921,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19016', 3000, 1)
end

function spell2_19016(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(14034,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19016', 3000, 1)
end

function Sorts_19016(pUnit, Event)
local choix_sorts_19016 = math.random(0, 2)
if choix_sorts_19016 == 0 then
pUnit:RegisterEvent('spell0_19016', 1, 1)
end
if choix_sorts_19016 == 1 then
pUnit:RegisterEvent('spell1_19016', 1, 1)
end
if choix_sorts_19016 == 2 then
pUnit:RegisterEvent('spell2_19016', 1, 1)
end
end

function mob19016_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19016', math.random(1500, 3000), 1)
end

function mob19016_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19016_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19016_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19016, 1, 'mob19016_Action')
RegisterUnitEvent(19016, 2, 'mob19016_Leave')
RegisterUnitEvent(19016, 3, 'mob19016_Kill')
RegisterUnitEvent(19016, 4, 'mob19016_Die')
